import { createRouter, createWebHistory } from "vue-router";
import Home from "./../views/home.vue";
import About from "./../views/about.vue";
import Galllery from "./../views/gallery.vue";
export default createRouter({
  history: createWebHistory("/"),
  routes: [
    {
      path: "/",
      name: "home",
      component: Home,
      meta: {
        title: "首页",
      },
    },
    {
      path: "/about",
      name: "about",
      component: About,
      meta: {
        title: "关于",
      },
    },
    {
      path: "/gallery",
      name: "gallery",
      component: Galllery,
      meta: {
        title: "相册",
      },
    },
  ],
});
